import { S } from '../../s';
import { IPSPanelItemSingleLogic } from './ipspanel-item-single-logic';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSPanelItemSingleLogicImpl
  extends PSModelObjectImpl
  implements IPSPanelItemSingleLogic
{
  get condOp(): string {
    return this.M.condOp;
  }

  get dstModelField(): string {
    return this.M.dstModelField;
  }

  get logicCat():
    | 'PANELVISIBLE'
    | 'ITEMENABLE'
    | 'ITEMBLANK'
    | 'SCRIPTCODE_CHANGE'
    | 'SCRIPTCODE_CLICK'
    | 'SCRIPTCODE_FOCUS'
    | 'SCRIPTCODE_BLUR' {
    return this.M.logicCat;
  }

  get logicType(): string {
    return this.M.logicType;
  }

  get value(): string {
    return this.M.value;
  }
  get cls(): string {
    return 'PSPanelItemSingleLogicImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._179) return true;
    return super.instanceof(cls);
  }
}
